Make getContext return null if context type not supported.
Merge pull request #348 from google/makeGetContextReturnNullIfUnsupported

Make getContext return null if context type not supported.