resolve error on dataprovider and non labellayer

resolves raster provider error, and erros if current layer is not a
label layer