Provide default settings when none exist

For modals that are generated after foundation is initialized, it is
possible that their `reveal-init` settings do not exist. In this case, the
default settings should be used.

This should fix the issue in #5281 and #3766.