Fixed bug with storing report when file has not been saved yet.