Do not overwrite get_session of base class

If the base class already defines get_session, do not overwrite it, otherwise
set it to None.