IvyEngine: Fix NULL dereference after bad param found