#81: handle null content when adding Resource or Resources

Pull request for #81