mod_stream_management: some code fixes and refactoring,
- Fix typo.
- Perform some sanity checks on resumption requests.