15609: Fix a crash that could occures in pqSGWritersMenuManager.
Add test to avoid function call on a null pointer when the session proxy manager is null (during a connection?),
Add test to avoid function call on a null pointer when the session proxy manager is null (during a connection?),