Fix -1 case in reachedAppUploadLimit