Update table header checkbox after searching
Update table header checkbox after searching

Now, the table header checkbox has no releationship with
the searching on page by javasricpt. This will cause two
situations:
- The table header checkbox is checked and delete button
  is enable when there is nothing under table.
- The table header checkbox is not checked when all rows
  filtered out are checked.

This commit will update the table header checkbox after
searching on page side, and fix the above bug suitable.

Change-Id: Ic290a67c7c85644bdedc80930c7d5be772fabde0
Closes-Bug: #1806342

openstack/horizon,openstack/horizon,NeCTAR-RC/horizon,openstack/horizon,NeCTAR-RC/horizon,ChameleonCloud/horizon,openstack/horizon,ChameleonCloud/horizon,NeCTAR-RC/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,NeCTAR-RC/horizon