Fixed an issue where for a component rendered inside a hidden div the placeholder remains vuisible.

The issue was caused by the fact that in jQuery, element.css('visibility') returns hidden if the parent is hidden.