This is one of those situations where a rule has to be compromised. In order to maintain the structure of the fraction, sacrifice the blank line between the horizontal fraction line and the matrix. If the blank lines are inserted it would lose its meaning as a fraction. Precede and follow the entire expression with a blank line.