[snipmatch] Allow SnippetCodeBuilder to be used in headless environments

Change-Id: I169b63771181513a2f8a5e56e36eac152a05ea35
Signed-off-by: Andreas Sewe <andreas.sewe@codetrails.com>
Merge "[snipmatch] Allow SnippetCodeBuilder to be used in headless environments"