Check for presence of metadata element

Test for record having metadata element, in case record has been deleted