This fixes an issue where the user could change the type of script being used for a command which would trigger a bunch of null exception errors (because the commandList might now contain a null entry).