Addresses a situation I ran across where availableStreamIds was undefined when length called. Follows pattern of adding the empty array from getStreamId