Properly handle undefined values in formFor.