js: don't parse empty/undefined response
js: fixed logging in showConfig