Fixed replicateM_ in Plan.

I fixed a bug that causes an infinite recursion when supply a negative number as the argument to Plan.replicateM_.