Changed _drupalgap_form_render_element() to check for element markup and to use that before failing to render the form element.
Extracted code from drupalgap_entity_render_content() and turned it into the new function drupalgap_entity_render_field() so others can use it.