Put check_unity() inside a try-except. Fixed #107.

screen.get_active_window() return None if the i3 window manager is used.
Clean up unneeded code