Refactored UIGoBack and UIGoBackToArticle for error recovery.

In a situation where the $.UINavigationHistory gets set to empty,
$.UIGoBack and $.UIGoBackToArticle will reset $.UINavigationHistory to
the app’s first article and send the user there.