Hi
I've created a pull request for 4.2 branch with the fix proposed by Grzegorz Olędzki and a test covering this.