Captcha element active on all forms?

There's an error in logger showing following:
CAPTCHA problem: unexpected result from hook_captcha() of module when trying to retrieve challenge type for form user_login_form.
Can be quite spammy as it's showing every time there's any form.
Temporary fix is check whether $captcha element exists at all.