Fix EZP-20949: Fatal error on versionview permission check

Additional fix as the 2 previous one (9984a39 and af78727) didn't cover
all cases.
Fix EZP-21298 : PHP Notice: Undefined index: syntaxCheck in /var/www/apache2php53/ezp5/ezpublish_testsystem/tests/toolkit/ezptestrunner.php on line 830