Return the locally assigned status value instead of pattern->status,
because the pattern handle will be invalid after the call to
cairo_pattern_destroy(pattern)
Change-Id: I0c38f6c4aac619de2d27b5136a41870bee6e78cc Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>