Fix invalid number conversion of empty strings