Fix SEGV on Y-axis Widget in Trend Chart

Fixes #970