Hello, please try the latest version (2.0.39) or later. The line number does not include foreach statement in any of the latest versions. The closes foreach statement lists the shipping methods - therefore i suggest you either have no shipping method properly configured for all combinations of an address or my component did not recognize your UPS shipping. I'd like to fix this for you ASAP and if you can, please send me an email and i will provide you my skype for online support.
Best Regards,
Stan
Edit, this will be fixed in v. 2.0.40 avaiable in about an hour from now.
Best Regards,
Stan