fix #196 - noRoutesorState always false when no state or routes