This was previously crashing due to a missing nullptr check (see e2d8aa6bf7 ). This just adds a test that should make sure this doesn't crash in case a user ends up in this strange setup.
e2d8aa6bf7