Update leave_application.py : Modified get_holidays function

See issue #2422 for more detail.