broadband-modem: avoid segfault when initialization sequence is aborted

The ports context is only set if the initialization sequence succeeds; so don't
try to clear the ports context if it wasn't set.
(cherry picked from commit f146c3a3dcc43688e7e8d3eb6b7752567cf2dfc4)
1 file changed