Collapse click handler should only call preventDefault when a target was found
Created by: nelisbijl
version 4.0.0-alpha.6
event.preventDefault is called regardless of whether a target is found. In case no target exists, it prevents other code from being executed