Prevent falling through floor when leaving bed

Without this change, leaving a bed which is on a floor one node high
makes you fall through the floor. Additionally, sometimes (presumably
due to network lag) you would still be in the bed, which you could no
longer see, leaving you no option but to log out.