Use block name if exporting NULL object.
Fixes #148