Added guard against null mockSignature