All you are doing is working the hours that your employment contract stipulates for the agreed salary. If an employer does not have enough staff to cover their obligations then that is not the concern or responsibility of the employee.
It seems quite straightforward to me.