Fixed crash when no trunks are defined.