Avoid crash when trying to import invalid context.

Authored by pprkut on Jan 21 2014, 9:23 PM.