fixed NullReferenceException when _styles is not set
fixed NullReferenceException in TryGetAttribute when _styles dictionary is not set to a valid reference
Merge pull request #103 from sunsided/pull-requests/containsattribute-nullref

fixed NullReferenceException when _styles is not set