cairo renderer: fix assert when no background