Fix PHP error when no visits logged.