Fix that sometimes documents are opened in wrong split

Task-number: QTCREATORBUG-6433

Change-Id: If1626c1a2c406af48a8d7c630c353e138a37aa2e
Reviewed-by: David Schulz <david.schulz@digia.com>