A fix for checking if get_fragment succeeded

Signed-off-by: Antanas Norkus <antanas.norkus@cern.ch>