[snipmatch] Bug 444390: Null pointer exception when saving newly created snippet

Change-Id: Id5eba1793bfb3fd13d6801b1a0ae9a5b928a9ce6
Signed-off-by: Johannes Dorn <johannes.dorn@codetrails.com>