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, even when empty (because of "nbsp;").
Merge pull request #46 from leibrug/master

Fixed modal-title display