Check the  before accessing it.
Merge pull request #44 from jordandukart/7.x

Check the  before accessing it.