[Fix #7333] - Zoom to layer does not work anymore for newly created shapefiles

Fixes http://hub.qgis.org/issues/7333