I think you've misunderstood me.
Write it as

  		if (command == null)
                {
                	if (template.WildcardPathSegments.Count > 0) command = template.WildcardPathSegments[0];
                       if (command == null) throw exception

I'm saying I don't want to support MONO conditionals if we dont need to.
This way IIS behaves the same as before (well, almost, but good enough).