My understanding would be that if you have a non-standard float32_mdi value in the header, then -32767.0 would become a **valid** value.  
On closer inspection of the context, though, I don't think a negative value makes sense here, so I think you can just call this 'defensive programming' and leave it as it is !
(Same applies to 'vertical_coord_type' case below)