Added check to see if ExecutableCommand object is null