Fixed errors when getting damage while sleeping. Might help fixing #548