[BUGFIX] Remove NULL table when clearing cache