Fixed crash when collecting items on ViewBox

Also fixed exception which could happen when dragging when mouse handling is disabled.