Fix of the issue when loaded section does not have script handler.

Reported by otmjka here: https://github.com/c-smile/spapp/issues/1