bugfix: handle 0 valid AMs gracefully
bugfix: handle 0 valid AMs gracefully

plantigrade/geni-tools,tcmitchell/geni-tools,ahelsing/geni-tools,ahelsing/geni-tools,tcmitchell/geni-tools,plantigrade/geni-tools