Fix potential null pointer deref if Mavlink start fails before task_main loop
Fix potential null pointer deref if Mavlink start fails before task_main loop

LL_APPEND is called just before the loop spins up but various error conditions can cause the task to exit before then.
When that happens Mavlink::start_helper calls delete on the instance which tries to prune it from the global list.
If this is the first Mavlink instance to attempt starting the list head is null and we hardfault in the Mavlink dtor.

Only call LL_DELETE after checking the list head for a null pointer.

dagar/Firmware,mje-nz/PX4-Firmware,jlecoeur/Firmware,Aerotenna/Firmware,acfloria/Firmware,dagar/Firmware,mje-nz/PX4-Firmware,dagar/Firmware,darknight-007/Firmware,PX4/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,darknight-007/Firmware,Aerotenna/Firmware,krbeverx/Firmware,Aerotenna/Firmware,krbeverx/Firmware,mcgill-robotics/Firmware,mcgill-robotics/Firmware,acfloria/Firmware,krbeverx/Firmware,krbeverx/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,krbeverx/Firmware,dagar/Firmware,mcgill-robotics/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,acfloria/Firmware,jlecoeur/Firmware,dagar/Firmware,mje-nz/PX4-Firmware,acfloria/Firmware,darknight-007/Firmware,darknight-007/Firmware,mcgill-robotics/Firmware,krbeverx/Firmware,acfloria/Firmware,jlecoeur/Firmware,dagar/Firmware,acfloria/Firmware,darknight-007/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,PX4/Firmware,mcgill-robotics/Firmware,Aerotenna/Firmware,Aerotenna/Firmware,Aerotenna/Firmware,PX4/Firmware,krbeverx/Firmware,dagar/Firmware,acfloria/Firmware,jlecoeur/Firmware,PX4/Firmware,Aerotenna/Firmware