CAS-1412:  web session terminated at end of subflow

Added code to check flowsession for root before setting maxInactiveInterval.

https://issues.jasig.org/browse/CAS-1412