Make sure metadata isn't null if attempting to use it