Added null check in constructor of BlockProcessor in CryptoTools.

Avoid throwing NRE later while using the class.