Move statusThread init on river start

- Check if index and type exists before calling count