Fix EZP-23823: Add missing object attributes with Symfony console results in PHP F...

...atal error

PHP Fatal error:  Call to a member function output() on a non-object in /var/www/ezpublish/ezpublish_legacy/extension/ezscriptmonitor/bin/addmissingobjectattributes.php on line 70

JIRA: https://jira.ez.no/browse/EZP-23823