Don't return null in Public APIs.

Raise an exception instead.