B"H web ui: fix bug in plane updating

The "valid*" plane values should be preserved if had been set.

Setting this as a boolean even when set to a non-boolean value by user
removes values with special meaning, for example
validaltitude == -1 (on-ground).
B"H web ui: fix altitude validity detection