[misc] Fixed a compile warning
[misc] Fixed possible bug when saving measurements without a date
[misc] Unit switcher: Don't initialize a row that has already been initialized