Tested it on master and with 5.2.17 and the issue does not replicate. Check out this test case for a proof.