Add missing throw to default_internal=.

The exception is created but not thrown in setDefaultInternal; the same issue existed for setDefaultExternal, but was previously fixed.