Fix the behaviour for not existing services with NULL_ON_REFERENCE.

* Don't look up the service twice, but also throw an exception if the second call
  specifies EXCEPTION_ON_REFERENCE.