fixing $rootscope.lastLocation finder method bug

The code that pulls the last location uri aftr the hash was throwing an
error when the last location had no hash. This should finally fix that
problem.