fix js error when leaving image field empty in profile form