replaced empty strings with null in angular model js