[PulseAEStream] Possible null pointer dereference.
[AE] [AESinks] Cleanup/init vars, check for return values and performance improvements, e.g., call by ref, pre-/post-incr.
Merge pull request #2380 from ace20022/warnings

[AESinks] Fix things found by Cppcheck