tests: Fix environment test on FreeBSD
Fix for commit 20c8ea1b; while Linux seems happy to return the value for the invalid key we set above, BSD returns NULL (which is probably a more valid thing to do).
Accept both.
Signed-off-by: Philip Withnall pwithnall@endlessos.org