B-47712: Cleaned up a logic error found while testing.