update ruby gems and fix nil warnings for sitemap template