Fixes #8632 The `library` map still contains the default category even when "empty". (cherry picked from commit ac1bed38f93e6b8e51b6f8cc2dae97c7ccb5f9b6)
Fixes #8632 The `library` map still contains the default category even when "empty". (cherry picked from commit ac1bed38f93e6b8e51b6f8cc2dae97c7ccb5f9b6)