Fix bug: NoResourcesExist not raised when get() empty.

Thanks crose.