Added some NULL return values to silence nuisance compiler warnings

These try/catch statements will disappear anyway when library moves away
from exceptions