This bug has only ever happened to me once, and that was playing a custom map. I had been playing for over an hour, and hadn't slept in a bed before then. I also hadn't used any elytra, nor were there any trapdoors around. When I sleep there again, the bug does not occur. The one time it did happen was in 1.9.1, though it shouldn't have been fixed by 1.9.2. A screenshot of the bed area is attached.
EDIT: Removed the horribly large picture, find it in the "Attachments" section instead
This bug has only ever happened to me once, and that was playing a custom map. I had been playing for over an hour, and hadn't slept in a bed before then. I also hadn't used any elytra, nor were there any trapdoors around. When I sleep there again, the bug does not occur. The one time it did happen was in 1.9.1, though it shouldn't have been fixed by 1.9.2. A screenshot of the bed area is attached.
EDIT: Removed the horribly large picture, find it in the "Attachments" section instead