Fix conditional in tpi.c

z=0 and z=L_z are valid parameters for the insertion coordinate