Check if inventory extra data is not null before use of getContent()