Fix merge-request specific CI running on master branch
There were parts of the Frontend Lint & Formatting check CIs that needed $CI_MERGE_REQUEST_TARGET_BRANCH_NAME to be defined.
This is only defined for merge request pipelines, so this MR adds a conditional check for those parts to prevent them from running on the master branch.