Bid/Ask Price Becoming 0?

Why does the API market data pull have a tendency to show Bid/Ask prices as 0? Many others have experienced this. What is the rationale for this? Has this community found a workaround such as by replacing 0 with the last trade data or so?