Improving the Resilience of Quadrotors in Underground Environments by Combining Learning-based and Safety Controllers