fix bug that would crash the app on launch if JSON == nil