Fixed NPE in Control#buildJsonOptions()