Pwx: avoid division by zero

check for nonzero speed failed when it was specified as float.

Thanks to Nils for sharing the example.