prevent a panic when the netdev/ifp is not set in attach
(internal  c63a7b85)

MFC after:	3 days