Fixes nil context errors

Was getting nil context errors when using line chart.

Other people also:
https://github.com/kevinzhow/PNChart/issues/5