Optimization and meaningfull error message in method addCssClass of decoration manager

Small optimization: If the decorator already has a rule in the stylesheet there is no need to call this.resolve() here.
Check if resolving the decorator was successfull and throw an exception with a meaningfull error message if not.