Fixing a potential NPE.
Fixed an error with detecting blacklisted blocks.