fixes a php error for forms that are not based on a model