Fix possible 'Couldn't fetch mysqli_result' error in KunenaDatabaseObject