Lavrentieff phenomenon and non standard growth conditions