bug fix check for defined variable

test_entry_id will be null for those assignments
not adjudicable