Added nil route when query returns nil