Trying to fix problem where it sometimes is not possible to open an attachment on a task in the task pane.

Signed-off-by: Michel Verbraak <michel@1st-setup.nl>