Fallback docker image cache for initial mr pipeline

Add check to fallback to master-latest tag as cache when running pipeline for the first time on specific branch