Check return value of BitStream_expand

All other callsites of BitStream_expand check for the return value, so do it here as well, since the realloc() could fail and BitStream_expand would then return -1 to signal this.