Incorrect. You willingly lock people up for premeditated murder even if the murder did not happen. If I hire a hit man, and they turn out to be an FBI undercover agent, I am now in jail not for committing murder but trying to commit murder.
By your whole argument, this person shouldn't be held criminally responsible UNTIL murder has actually occurred.