Non-degenerate metrics, hypersurface deformation algebra, non-anomalous representations and density weights in quantum gravity