Fixing PHP notice.

See 42752cfdcf97140422f82a724774e566d929f658
Fixing error when saving big files see BT#8966