Manifest: add some defensive programming

This guards against the wrapped manifest being null, as well as the
wrapped manifest's main attributes being null for some reason.

Intended to address (the symptom, at least) of Fiji bug 889:

    http://fiji.sc/bugzilla/show_bug.cgi?id=889