Fix for optional package_intents

Package Intents are optional in STIX, and the original code throws an
exception of the source document does not have this.  Rather than
checking the way it was done, look for the presence of the attribute
and if present, then do the same thing.