Made env_t be a bit more asserty about ctx not being NULL.