storage.in_memory: Fix limit handling in SubStorage.content_ctags_search
While working on improving the webapp tests, I found this little issue in the in-memory indexer storage implementation.
Test Plan
Test cases have been updated to capture the encountered issue.
Migrated from D804 (view on Phabricator)