[SPARK-2497] Included checks for module symbols too.