Prevent NullReferenceException

Prevent NullReferenceException when kernel.GetSingleInstanceActivationError(type) does not return an error.