core: Handle null return in getenv
core: Handle null return in getenv

Fix #97

philipdexter/rain,scizzorz/rain,scizzorz/rain,philipdexter/rain,scizzorz/rain,philipdexter/rain,philipdexter/rain,scizzorz/rain