Check if resource is alive before attempting to read serial mode parameter from request to avoid
"java.lang.IllegalStateException: Request object no longer valid. This object has been cancelled"
Merge pull request #988 from markathomas/atmosphere-1.0.x

Ensure resource aliveness before accessing request object