[ticket/12778] Rename the file to *.bak instead of deleting

PHPBB3-12778