MAINT: unreachable code removed from BernoulliNB

The deleted code was unreachable. The previous call to check_arrays
ensures that X and y have consistent first dimensions.