we need to make sure the context is current

Change-Id: Ia3d9df493899949f8de096f1cb0a3b63bffac0eb
Reviewed-on: https://gerrit.libreoffice.org/10184
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>