Avoid potential NPE.

Seemingly the gist user field is not filled out in some cases.
Basic support for relative URLs (links and images) in READMEs.
Also support relative URLs in locally rendered markdown.
Fix potential NPE.