Fixed modal-title display

Modified logic in updateTitleAndFooter() so modal-title always follows the "always_show_close" option.

Before, when "always_show_close" set to false, only first modal had hidden title - when navigating left/right the title showed up, even if empty (because of added "nbsp;").