#JC-552: Added method which removes empty list bb codes