fix #1397 -- fix sitemap regeneration

This is a fix for #1397.  Bug introduced in #1032 (32f4c0d).

(hat tip to `git bisect`)

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>