osd: check returns from get_snapset_context() when it can return NULL

fixes: #5139

Signed-off-by: David Zafman <david.zafman@inktank.com>