Display pagename if heading is undefined

If useHeading option is set, and if heading of redirected page is
empty, displays __pagename__ instead of __heading__ in note. 
* Suggested in issue #9
* It will fix issues #9 and #13.