attachment: fix after_initialize error

This is a robustness fix, which simply checkts to see if the
initialized component has data and if so, then we can decompress
it. This adds a humble performance fix when simply browsing issues.