[HOTFIX] Do not throw NPE if spark.test.home is not set

`spark.test.home` was introduced in #1734.