Fix for bootstrap

Fix copied from https://github.com/zikula/core/commit/079df47e7c1f536a0d9eea2993ae19768e1f0554