ActiveAE: AEStream::AddData returned wrong number in some cases
Merge pull request #4118 from FernetMenta/aefixes

ActiveAE: AEStream::AddData returned wrong number in some cases