Set ENV['STACK'] to an empty string if not set.

This is a workaround for multiple faults arising from the mismatch between Heroku's
environmental assumptions and the CF execution environment. Setting STACK to an
empty string avoids several code paths that misbehave on CF.

[#78677868]