Fixed a bug that caused incorrect and empty warning titles

+ While saving a warning, predefined warningtype titles weren't used as a warning title, while custom warning type are used as the warning title