Move ceck for topMost from getItems. Not sure if it safe
Merge pull request #21 from mio-g/JENKINS-13078

Move check for topMost from getItems. Not sure if it safe