Fix issue #1136 - wrong last modified date in sitemap

Applied fix suggested by @rscs which was confirmed working by two other users.