fix for php fatal Error: Call to a member function getAction() on array in civimobileapi_civicrm_buildForm()