It seems this bug no longer exists since at least 1.21, although I don't know in which exact version this bug disappeared.
Short demonstration: https://www.youtube.com/watch?v=J5EWV48o6L4Detailed demonstration (includes some workarounds): https://www.youtube.com/watch?v=kkm4liO-Tdc
It seems this bug no longer exists since at least 1.21, although I don't know in which exact version this bug disappeared.