Deal with missing Mink

As we could now use JsonContext without RestContext, we should suppose that mink is not always defined