fix NPE when checking symbol attributes