Fix build with QT_FORCE_ASSERTS

Change-Id: Ie87b574f6cabe6095a531129511823ec55c58929
Reviewed-by: Lars Knoll <lars.knoll@digia.com>