Deal with missing Mink

As we could now use JsonContext without RestContext, we should suppose that mink is not always defined
Merge branch 'tyx-fix/deal-with-mink-missing'