fixed #277, #279 (blitting null-canvasses fails)

Thanks, Nathan, for the pointer to this!