Thats very odd that all gemm calls but one have that protection. Can you make a PR with the required change? We would usually write that as:
if (!k[h] || !m[h] || !n[h]) continue;
This is just the standard convection to skip the loop rather than go further into nesting with the
if statement. Either way works for me!