Fixed PHP warning "Warning: mysqli_close(): Couldn't fetch mysqli"