Anomalous density effect in the bremsstrahlung of a relativistic electron, passing through a thin layer of a medium