I thought your suggestion to add further conditions when the 'login_session_expired' status message should be displayed was a good call, so I did a a little testing with your suggested implementation but come across some scenarios that caused problems.
I have since found what I believe is a more reliable method and have implemented it into the library.
Hopefully this will accomplish what you have requested.
You can get the changes via the usual Github repo.