Make sure no js error occurs when no filefield