Fixed bug in FormModelBase::form() where not generating form correctly