"Accessed none trying to read property" when trying to close Inventory

I just tried your solution and stopped receiving the error; however, my inventory slots are now not appearing in my inventory and I still cannot close the inventory after opening it.