Octopus chooses wrong config file for transformation if the right one is missing

I have two environments: Test and Production. My project includes web.config, web.Test.config and web.Production.config. However, web.Test.config had the wrong Build Action specified (“None” instead of “Content”). It prevented the web.Test.config from being included in the Nuget package. What happened then was that the web.config for builds in the Test environment was transformed through the web.Production.config. My thought is that this is a dangerous bug. When the web..config is missing, an error should be thrown, or at least no transform should be applied at all.