Kraken: return earlier in apply_vj_extension
Kraken: only check validity pattern once in apply_vj_extension
Merge pull request #653 from l-vincent-l/small_optimization_stay_in

Kraken: return earlier in apply_vj_extension