Fix crash in Map{Polyline,Polygon,Route}ObjectQsg


When these objects get added to a map but aren't immediately visible
(meaning are outside the visible region entirely), their respective
QSGNodes will be marked as blocked.
However, this isn't handled gracefully in qsgbatchrenderer.
Renderer::nodeWasAdded discards nodes that are blocked.
Meaning that when they will become unblocked, the node will
result in being unallocated.

This patch makes sure that a node is not instantiated at all
if it would result in a blocked node.

Change-Id: I8e174ba1d317e1d0c4006d993ec558bdad8a5b39
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit80812d1b8a63cb8aef9b4f0928c226f5c7f386c5
parentcad3ffc8c90f3c194d06e52c981cd54cdab509ec
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerPaolo Angelelli <paolo.angelelli@qt.io>
commit timeWed, 9 May 2018 20:01:41 +0000