Empty Data Fix

Fixed crash on empty to-Pos node. Cleaning up json data when storing
new input from ontology display.