resource/gitlab_repository_file: Fix check if file exists during read. Closes #1260
For some reason the check if the file exists was matching some text in the error message - however it should check the status code, like everywhere else.
Closes #1260 (closed)