This seems to be the shortest answer I could find:
location=location.hash||"#updates-list"
This simply redirects the user to a valid hash if it is currently nonexistent or empty #.
~98% of users have JavaScript enabled, so a JS solution shouldn't really be a problem.