Applied fixes to SPI implementations to make sure they pass all the unit tests; this mostly involved adding null and empty string guards

git-svn-id: https://svn.apache.org/repos/asf/wookie/trunk@1568334 13f79535-47bb-0310-9956-ffa450edef68