Fix crash when no items available and DataChanged is called.


Added check to do nothing if no items available to avoid crash.

Task-number: QTBUG-52174
Change-Id: Ibe870480b24129733b051c4b2b172b554a3c9602
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
commit608acd2415390390ae0ee7daaca57a1d91ad371c
parentf40e92b147560be15e0f53dfd7f6b2d698c00fb9
authorMarko Kangas <marko.kangas@theqtcompany.com>
committerMarko Kangas <marko.kangas@theqtcompany.com>
commit timeWed, 6 Apr 2016 06:28:23 +0000