Hotfix failure issues in have_field_for

When testing have_field_for inside a form with a css ID and class both containing the resource name, it would always succeed, even if the expected field was not present. This is fixed