SPARK-1190: Do not initialize log4j if slf4j log4j backend is not being used