Merge many fixes

Contains the PR #1893 and a possible fix for the premature RxRingBuffer unsubscription and NPE.
Reading a non-volatile member variable several times when it can be set to null concurrently is even more dangerous.