Fix potential null pointer dereference in src/context.cpp
Merge pull request #270 from orbitcowboy/master

Fix potential null pointer dereference in src/context.cpp