More error handling in FeatureScalingFunctions.py