staging: dwc2: check for null pointer before dereferencing it