Fix akonadi unhandled exception

Authored by fazevedo on Mar 22 2019, 8:16 PM.