Fixed JavaScript error when max_filesize is None