Thank you PeroK, I came to a similar conclusion the other night while I was falling asleep, and forgot about it until now. The answer I had arrived at was:
in the first case, the Lagrangian is a functional L[x], as I had written. However, once you plug in F=m\ddot{x} x can no longer be varied...