Shenhua applies for mining licence and avoids cancellation clause