Activity + Reader: undefined index and missing argument upon search

Fix #1772