Registering undefined partial throws exception.