Don’t assert the result of sp_env()

Just gracefully return `NULL` instead.
Merge pull request #38 from sphia/ocd/dont-assert

Don’t assert the result of sp_env()