ignore style settings when format is not defined

style could be not specified for specific formats, in this case
we should ignore style labels in Images or Links