Fix a null pointer dereference in 7a1d036 when used without a loader.