HTML: Fix crash building JSON when there is no SWAP