Fixes issue #6916

Followup of e97dc29
correction for Crs definition

add check qgis version:
so it works both 1.8 and master version

another fix:
python error is shown if layer is removed from canvas