[PATCH 4.19 278/639] net: dsa: Avoid null pointer when failing to connect to PHY