move PVR_STREAM_MAX_STREAMS checking and logging to stream_utils.

This reduces code duplication and fixes hypothetical cases where
the video stream would be dropped if it didn't appear in the first
20 streams.