Fixes unable to add a module in non-bootstrap themes
(cherry picked from commit e860fbd)