Fix a bug in HttpSession
add isEnvironmentCreated in App
fix bug : HttpSession triggers status changed event after STATE_FINISHED