Nonmonotonic field dependence of the Néel temperature in the quasi-two-dimensional magnet [Cu(HF2)(pyz)2]BF4