Fix #131: ValueError: No JSON object could be decoded