[PATCH 5.4 38/78] drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes