Fix of the zoom when dashboard has no refresh

When a dashboard has no refresh, a javascript function was called but it is not
defined in this particular case so that the zoom fails.
A PHP if was added for this case.
Add "&drawNullAsZero=true" for graph drawning