Test that $POSSIBLE_LDM_SERVER is not "null" (which is a valid
json output, that might have been given by curl + jq).
Perhaps this snippet should be moved to a separate script
(so that it could be tested independently), and error handling
might be improved as well.