fix qbs Qt5 release build

Avoid QList::mid to work-around the strict-overflow gcc warning.

Change-Id: Ia6a694586e34979e6635418b15786a857d337f70
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>