removing any undefined prexecute, midexecute, or postexecute from param stream