Prevent an error when checking point containment and no dom element exists.