Fix location search when timeInstant is declared

[#550]