ug "1.5 Statistics Charts - "marriage by country" gives PHP error"

Apply fix described at #1198630