Fixes a null pointer exception if a scheduler isn't supplied to "windowWithTimeOrCount".

Fixes a bug in "windowWithTimeOrCount" where a default scheduler isn't assigned if a scheduler isn't supplied.