Bootstrap compatibility patch, refs #zikula/core/1040

License: MIT
Ref: https://github.com/zikula/core/issues/1040