ensure we always fallback to parsing params if request body contains invalid json

closes #2