Fix newly added qquickitem_before_paintNode() implementation.

Bug spotted after the fact with lancelot.

Change-Id: Id9b2d2577658f772f3083b1396f61710a950f83b
Reviewed-by: aavit <eirik.aavitsland@digia.com>