Removed unwanted state variables from HideableComponentWrapper

Removed checks for isVisible and isComponentVisible as they were just
for optimization purpsoe. Since isComponentVisible() was not used
anymore removed the method and state variable as well.

emptyComponent member was not required as it was not being used later
after constructing the HideableComponentWrapper.