[ticket/11840] Further improvements to composer.json validator

PHPBB3-11840