Added crash prevention for some issues detected with amount processing.