Bug 681140 - Filter Render/Line Nova: renders in black instead...

Store the foreground color before setting the default context.

(cherry picked from commit 4de78f51b31843cdbb9a4b53d7c89fddf13ba111)