Fixed php notice occurring when all modules are deleted
Revert "Fixed php notice occurring when all modules are deleted"

This reverts commit 38956745dbbe9f099ed93143cc0912b0fea1e2a7.
Merge branch 'master' of https://github.com/joomla/joomla-cms
[#31036] Search is broken on Chrome
[fix] Code style errors
 Fix issue [#30803] Strict Standards: Declaration of ModulesModelSelect::getItems()
Add ability to place named variables in language strings
Update text.php
 # [#31609] *Regression: [#30150] prevents subcategories drilldowns
[#31620] Some plugins cause blank pages in 3.1.4
Add test coverage to JPlugin constructor testing private vars
[#31607] REGRESSION: Changing the autoload order in a point release (Fix #1615)
Add test coverage to JLoader::registerPrefix()
[#31598] Fix for B/C break related to Tag saving using *old* way (Fix #1606)
Prepare 3.1.5 release
Correct duplicated update queries
Prepare master for development
 $ Updating installation lang files: ru-RU, sv-SE
 # [#31297] Content language manager missing drag drop ordering. Thanks
Nguyen Huu Hien
(Fix #1456)(Fix #1415)
 # [#27476] Menu types view not sorted alphabetically. Thanks Lao Neo
(Fix #1498)(Fix #1511)