#42: fixed issue with optional cacheProbs parameter.
it was not handled as optional in the code logic