Bugfix for BundleCalculator recent pull request.

Not all custom value types implement the asString() method.
This fix is a workaround for that fact.