fix #2430: waypoints not loaded from website

A recent fix for #2341 broke the fresh store of waypoints. Comparing
with "< 0" to check if a waypoint id is invalid implies setting the
uninitialized value to a negative number.