Fix isOrHasChild check with null parameter in Escalator (#13334)

Change-Id: I97c219f1607d6ba7ad1e6214ee7fde63972d51bd