ensure that current_api_call_count and total_api_calls have been init'd

Please review @maartenvg