Fix to docson.js

This is  a small change to docson.js to allow the rendering of certain JSON specification files which would otherwise cause a null reference error.