[DF-2503] Added check if scene has tilemask modify commands before saving tilemask. Code refactor.
Merge branch 'development' of https://github.com/dava/dava.framework into development