Avoid error when isActiveRoute is called on an undefined path