SONAR-5564 - Fixed rails status compare