update isRedlistedBlock to use isRedlistedCScript and add null check for
prev block