PropertiesActivity: Fix multiple crashes