Check if the file exists

Check if the file exists because otherwise php generates an error while reading the filesize. See: https://github.com/contao/core/pull/6168#issuecomment-24100391