Fixed file upload error checking in Admin Categories controller