use try to avoid troubles with missing elements
Merge pull request #1 from alarionov/master

use try to avoid troubles with missing elements