Sample texts are not set on schema editor when editing/viewing grammars and functions

happened with new mapping editor implementations?!

(from redmine: issue id 668, created on 2018-01-22tgradl)