Fixes wrong sess_count decrement on session registration failure