Assert CGContextRef exists