don't fail on an empty nid
Merge pull request #5 from dawehner/master

Don't fail on an empty nid.