[opcodes] Throw correct exception in checkfilter
[opcodes] null or undefined can not be constructed