prevents touchscreen form crashing when form elements are empty