Return NULL for non-existent keys

The load() function already returns just one entity or NULL, so
the current() is not needed and the result can be returned directly.
Test actual data returned by get()
Get rid of variable