Fix unlimited for subscription total occurrences

Subscription API reference and readme suggests that unlimited can be total occurrences, but code allowed to set unlimited value for length property.