Fixed 2 Null pointer derefrences in both nTox and toxic

This resulted in holes while loading data files in nTox and toxic that could be exploited, possibly allowing arbitrary code to be ran when loading data files.

Tested by charmlesscoin.