This MR fixes the code responsible for checking maximum allowed artifacts size.
Closes gitlab-org/gitlab-ce#35317