Adding a missing else block for throwing a store def mismatch exception