Bug fix to change 2085 which broke form parsing as the specdef
variable is only available within the context of the command
being executed and the SetInput() method was trying to use it
outside of any command context. That and having a bad condition
in the test for its existence was causing a segvio.