The backend may send a null source location in for a frame.
Because of this:
Note: I suspect there may be other impacts when href is null. Though I can't identify them...
#7948 Fix "href is null" appearing in the console
Hmm, rather !href || as otherwise, we see "null" in the call stack of console.error when running this test case:
Looks good to me.