Measurement of the Branching Fraction B(Bu+→J/ψπ+) and Search for Bc+→J/ψπ+