app: Return NULL on failure in gimp_drawable_foreground_extract

It is not a void function.