Throw exception instead of returning EmptyObject.

Close #131.