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>
(cherry picked from commit 606af1462d81ac5188e0a6a3a1c270a327a68fd4)
Reviewed-on: https://gerrit.libreoffice.org/10188
Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>