Support a (latest) session id of -1.
Use a single return statement defaulting to nil.
Remove unnecessary return statement.
Fix on_session_module_run bug
Land #4 @jvazquez-r7's bug fix for on_session_module_run
Land #2952, -1 for last session ID