Fix EZP-23518: Clearing image aliases with Symfony console with --purge option results in PHP warnings