@rgrove is right, this method tests prefixes on module names, e.g:    `gallery-dispatcher` uses the `gallery-` prefix, which means the module should be a synthetic gallery module. If this is called with non-strings values, then that's a problem.