fix for Notice: Trying to get property of non-object if root node is array

Subj. It was broken [here](https://github.com/sanpii/behatch-contexts/commit/65dadf3c01426f15fdbc741f510731d8a3d7c0ae)