Partial reversing my previous change

My previous change also changed the file to check, I'm changing that back to look for the JSON-API plugin to be active. Sorry for me not understanding this dependency.

Stephan