server: remove wrong while-let reference