Use defined return values in load_module in more places.