functional tests: fix detectChanges function
functional tests: fix detectChanges function

When we did the refactoring of the CI build script, we inverted the
condition that checks if we're in origin/master to always run the tests
in that case. That caused tests not running on the master branch
anymore.

markllama/rkt,markllama/rkt,joshix/rkt,akshaykarle/rkt,jonboulle/rkt,yifan-gu/rkt,kinvolk/rkt,Wilybald/rkt,ybubnov/rkt,yifan-gu/rocket,s-urbaniak/rkt,sstabellini/rkt,achanda/rkt,jjlakis/rkt,Shashwatsh/rkt,joshix/rkt,euank/rkt,nhlfr/rkt,lucasallan/rkt,akshaykarle/rkt,tmrts/rkt,Shashwatsh/rkt,joshix/rkt,tmrts/rkt,sgotti/rkt,jakon89/rkt,yifan-gu/rocket,lucasallan/rkt,ybubnov/rkt,yifan-gu/rkt,kinvolk/rkt,rkt/rkt,sstabellini/rkt,cab105/rkt,tmrts/rkt,matthaias/rkt,achanda/rkt,yifan-gu/rkt,rkt/rkt,nhlfr/rkt,shobhit85/rkt,markllama/rkt,sgotti/rkt,monstermunchkin/rkt,monstermunchkin/rkt,Wilybald/rkt,Shashwatsh/rkt,dgonyeo/rkt,rkt/rkt,jakon89/rkt,intelsdi-x/rkt,matthaias/rkt,jjlakis/rkt,akshaykarle/rkt,matthaias/rkt,lucasallan/rkt,ybubnov/rkt,euank/rkt,jjlakis/rkt,s-urbaniak/rkt,monstermunchkin/rkt,achanda/rkt,coreos/rkt,Wilybald/rkt,cab105/rkt,dgonyeo/rkt,dgonyeo/rkt,lucasallan/rkt,alban/rkt,rkt/rkt,squeed/rkt,mike1729/rkt,s-urbaniak/rkt,squeed/rkt,joshix/rkt,shobhit85/rkt,intelsdi-x/rkt,jonboulle/rkt,yifan-gu/rocket,coreos/rkt,coreos/rkt,mike1729/rkt,sgotti/rkt,alban/rkt,squeed/rkt,jonboulle/rkt,intelsdi-x/rkt,kinvolk/rkt,nhlfr/rkt,mike1729/rkt,kinvolk/rkt,sstabellini/rkt,jakon89/rkt,shobhit85/rkt,cab105/rkt,euank/rkt,Wilybald/rkt,alban/rkt