HeaderFooterLayout: Disconnect only owned signals, add a null guard
Unguarded disconnects may trigger null warning:
qt.core.qobject.connect: QObject::disconnect: Unexpected nullptr parameter
Edited by ivan tkachenko
Unguarded disconnects may trigger null warning:
qt.core.qobject.connect: QObject::disconnect: Unexpected nullptr parameter