[BF] Harden variable checks for sflow presentation script