Check return value of the get selection function

- closes rhbz#912877

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Make controller more robust against invalid arguments

- related to rhbz#912877

Signed-off-by: Jakub Filak <jfilak@redhat.com>