dynamic template with ps support

When loading template dynamically - such as template of popover/tooltip in angular strap the thumb size is 0 because relevant element ps-scrollbar-x-rail.css('borderTopWidth) is equal to '' which results in NaN which leads to thumb size of 0.