Fixes exception when bringing front layer to front

Before putting in this null check on (.-_map layer) it was throwing an
error when hitting a null on _path-root.