Whoops, apparently I already reported this behaviour here... I just added XWIKI-22025 which also includes this problem here - however it includes more detail, so we better close this issue here as duplicate, even if it's slightly older.