Update leave_application.py

See issue #2422 for more detail.