Fixes null pointer when instantiating Serial device.