Ensure there aren't any null attachments before adding it to attachment array.
Added Exception handling in parsers.