Fix issue with creating Pinia store before app initialization