2.23: fixed an issue where _depends_mods() and _depends_bases() return undefined value if the module depends on nothing.