Fixed: Crash of press tool due to theme attribute not set

When using the press tool, it can happen that one of the theme attribute is not set as not everything is instantiated. 

This fix makes sure that the attribute is set before accessing it to avoid any crash of the press tool.
Merge pull request #2148 from zittix/patch-2

Fixed: Crash of press tool due to theme attribute not set