Fixed check for existence in DB on financial categories.
Fixed some NullPointer Exceptions. (refs #323)