Fixed problem where broadcast receiver was trying to make UI changes while activity was closed