Revert "Return NULL on get failed" For consistent (will throw exception
in next major release)

This reverts commit 147d0909025f695507764cc7bdeb64b9527f2aa0.
Fix test
Since we don't support procedural api anymore