Check for NULL from getenv