Fix up a bunch of warnings (dead code, null pointers, and others.)
Merge pull request #522 from bkemper-pentaho/master

Fix up warnings for dead code and null access in Platform-core