Entanglement negativity in the critical Ising chain