QmlProfiler: Fix timeline range selection

The timeline did not jump back to the selection when the selection
range detail window was clicked and an error was triggered when it was
closed.

Change-Id: I2de5788a184f2958a07ad39a3a0f298667d9783f
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>