Fix a null pointer exception for consumption models