Update cssassist.js

added checks for classList/attrList existence
added return [] for unknown types in makeArray