Fixed context reference in Task application class

Signed-off-by: Tom Wright <tom@inflatablecookie.com>