Good catch - teach me for not adding a test for something I figured would never happen but should add anyway.

I squashed and pushed both PRs after fixing and adding a test.