t1501: demonstrate NULL pointer access with invalid GIT_WORK_TREE