ad-server: fix bugs noted on buster upgrade

1 job for master in 45 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #4333
test

00:00:45