TypeError: Cannot call method 'pop' of null

This would prevent the error.  The value will be undefined.  Or we could wrap it around a try/catch
Update session.socket.io.js

oops forgot the last empty array
Merge pull request #1 from NathanGRomano/patch-1

TypeError: Cannot call method 'pop' of null