Add null check for $buildToolsVersions and add spec to test 4.5.1