Only check for beds when leaving the End. Fixes #1262