I have writte a unit test which reproduces this issue. I have linked the pull request for the unit test.