Added guard for null parameters and messageDB not set up when method invoked.
Added guard for null parameters and messageDB not set up when method
invoked.

coinspark/sparkbit,coinspark/sparkbit,coinspark/sparkbit,ychaim/sparkbit,ychaim/sparkbit,ychaim/sparkbit