Catch an edge case

From @ericecook
This should almost certainly log an error message. What was the scenario that caused this to be a problem?