Allow "build_url" field to be null

When Jenkins is not correctly configured (e.g. after an upgrade, as it happened to us twice) the environment variable BUILD_URL is not set, so the build_url field in the JSON document is set to null.

This causes exceptions in the frontend code resulting in error 500.