common: fix NPE

Change-Id: I0aa9de7e96048c728518ef214a1c08bd9c9ef549
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>