Ignore sort order for activity index if unmapped

This prevents an error from being raised on a fresh deployment if no
items have been yet added to the activity index