[No reviewer required] Fix coverage issue

I just realised that the Sprout build has been unstable for a few days because of two line of missed coverage in registration_utils.cpp.  This is a quick LCOV_EXCL_ fix to get it stable again.