allow context (canvas) to be NULL

Fixes sourceforge's pd-gem/bugs/225