Plugin: Fix json parse when cookie is nil