return nil if ui cgcontext comes out NULL
Merge pull request #12 from drmonkeysee/nullcontext-fix

return nil if ui cgcontext comes out NULL