Fixed regression causing crash when support material threshold angle was defined. #1048