Bradford Royal Infirmary was understaffed on a ward and failed to carry out overnight checks on an elderly man who deteriorated and then died.