Fix potential null pointer dereference in src/context.cpp

This fixes Coverity Scan ID 85036 Explicit null dereferenced.

Best regards and many thanks 

Martin Ettl