iMSCP::Log library: Avoid to return list of undefined elements on flush
Several fixes