COLLADA: all animations are exported even though "Export Only Selected" is checked

I have two cubes that are being animated. When I select one of them and export for COLLADA with the checkbox “Export Only Selected” checked, I expect that the resulting dae file would only have the animations of the selected cube. However, all the animations are present in the dae file.

This seems this a bug in the COLLADA export. Is there a way to get around this?