Fix Chart.JS setup for pools
Fix Chart.JS setup for pools

The canvas is only included if pool has members of given address family
but we always tried to draw to the canvas (which didn't exist if there
were no members). This resulted in a JavaScript error and if the pool
contained IPv6 prefixes but no IPv4 prefixes, the chart for IPv6
wouldn't be drawn. This change fixes that.

I would like to move all of this to JavaScript on the client side
instead of mixing up server side Jinja2 with Javascript, but that will
probably come once we migrate these pages to AngularJS.

Fixes #552.

garberg/NIPAP,plajjan/NIPAP,SpriteLink/NIPAP,bbaja42/NIPAP,SoundGoof/NIPAP,ettrig/NIPAP,SoundGoof/NIPAP,bbaja42/NIPAP,ettrig/NIPAP,bbaja42/NIPAP,fredsod/NIPAP,SpriteLink/NIPAP,ettrig/NIPAP,bbaja42/NIPAP,plajjan/NIPAP,plajjan/NIPAP,plajjan/NIPAP,ettrig/NIPAP,SpriteLink/NIPAP,ettrig/NIPAP,SoundGoof/NIPAP,SpriteLink/NIPAP,SoundGoof/NIPAP,ettrig/NIPAP,fredsod/NIPAP,plajjan/NIPAP,bbaja42/NIPAP,bbaja42/NIPAP,SoundGoof/NIPAP,SpriteLink/NIPAP,plajjan/NIPAP,garberg/NIPAP,fredsod/NIPAP,garberg/NIPAP,garberg/NIPAP,fredsod/NIPAP,SpriteLink/NIPAP,garberg/NIPAP,SoundGoof/NIPAP,fredsod/NIPAP,garberg/NIPAP,fredsod/NIPAP