Fixed a 500 error when uploading a new skin