MODULES-1413 Add check if item responds to empty? before asserting not empty?