Added logic around the code block that uses the field_site field. The idea is to prevent
the 'EntityMetadataWrapperException: Unknown data property field_site' error.