[media] fc2580: fix crash when attach fails