Fix VariableDoesNotExist error for empty search query
Implement SHERPA-317 - Show activities in the past