guard against null / emptiness in JSON object
Merge pull request #194 from rstudio/bugfix/rnw-completion-null-check

guard against null / emptiness in JSON object