Style fix.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
Check valid data in the message in right order.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>