Fix crash that can occur when editing projects that have a P2SH target address