Fix bug where pingIntervalId is not being held

setupExpress() sets @pingIntervalId but then it is being reset to null
at the end of the case. Moved the line above so that it does not set
@pingIntervalId to null.