Adds correct function to check for malformed control prior to adding it to a form to prevent the page crashing in rare instances when there is garbage in a control definition in the database