Fixed bug which caused server crashes on short packet rx.