Fixes #137 - error when searching task instances.