fixed an error when parsing a url for up returns the string 'null'.  Now, if you can't go any further up, it stays at the level of the article (which seems generally more useful anyway)
culling dead code