Fix EZP-21627: ImageMagick "Unknown destination file" when php system function is disabled