LPS-47608 Fix js error when you disable the recycle bin