[TIMOB-15078] (3_1_X) NavigationWindow does not animate close when opened modally

Backport of PR #4677

Fixes [TIMOB-15078](https://jira.appcelerator.org/browse/TIMOB-15078)