Improve error location in trace

## Context
When an error occurs the message is not always good:
* in a web test: outside a group the step number is not diplayed at all
* in a gui test: it displays the last previous group location even if you have left it.

## Description
We fixed the ```TestLocation``` computation.