docs(example): test for undefined nav in nav()

oops.