Modify typeAheadUtil. Handle null in form