Fixed PHP warning if JSON configuration is unreadable or empty. Fixes #3