Force hide empty elements for PhantomJS.