Fixed HardwareSerial bug introduced in 1.5.3.

Fixes #1568