Removing errant query line in api.py

vuln_rec may be None causing a fault due to an errant query line.