[ticket/12536] Add test cases with empty versions list

PHPBB3-12536