Fixed null pointer exception in Groceries Window