Fix several small errors as determined by the Coverity scan.

One potential NULL dereference, but mostly checks for return values
from SMARTS calls.
Merge pull request #64 from ghutchis/FIX_descriptor-coverity-errors

Fix several small errors as determined by the Coverity scan.