Minor change to make MCMCSamplerState.createContext() more robust against unanticipated exceptions.