message: Fix console errors in `clean-issue-filters`
diff: @@ -32,7 +32,7 @@ function getCount(element: HTMLElement): number {
  async function hideMilestones(): Promise<void> {
  const milestones = select('[data-selected-links^="repo_milestones"] .Counter')!;
  if (getCount(milestones) === 0) {
  - (await elementReady('[data-hotkey="m"]'))!.parentElement!.remove();
  + select('[data-hotkey="m"]')!.parentElement!.remove();
  }
  }
  @@ -54,11 +54,16 @@ async function hasProjects(): Promise<boolean> {
  async function hideProjects(): Promise<void> {
  if (!await hasProjects()) {
  - (await elementReady('[data-hotkey="p"]'))!.parentElement!.remove();
  + select('[data-hotkey="p"]')!.parentElement!.remove();
  }
  }
  -function init(): void {
  +async function init(): Promise<void | false> {
  + if (!await elementReady('#js-issues-toolbar')) {
  + // Repo has no issues, so no toolbar is shown
  + return false;
  + }
  +
  hideMilestones();
  hideProjects();
  }
  