Fixed missing post ID for invalid ref-links.
Merge pull request #76 from ernstchan/bugfixes

Fixed missing post ID for invalid ref-links.