Added default collapsed class to accordion

Fixes #14407. 

/cc @mdo @cvrebert