InvalidLocationException: do not generate a stack trace

InvalidLocationExceptions usually don't indicate a program error but
are intended to influence control flow instead. Generating a stack
trace is expensive and should be avoided whenever possible.