Add a check in the validateTransport private method to ensure that the passed in transport is a string