Added missing ";" and test for $elementsCovered being null