Fix wrong target selection
Unless instead of if
Merge pull request #57 from vmoravec/empty-target

Fix wrong target selection | bnc#864073