Handle failed ping

When ping test fails an empty string is passed in the result JSON. That causes problem on the server side. We should define how handle the failure properly (or send a number instead of string at least)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information