Remove useless check for file existing.
Turn assert failure into error message.