Avoid null this pointers in member function calls

Change-Id: Iada6d8fcd261ddfb02b4dbc2f628ef0738c4ea01
Catch invalid null pointer operations early

Change-Id: I324d5a6e84e0d2121d8e4612e074b44ed5127b11