Don't attempt to require nil

Fixes #28942.