Why does the warning 'Expected onclick listener to be a function, instead got a value of object' occur? A) Syntax error in the onclick function B) Event listener is not properly defined C) Object assigned instead of a function D) Browser compatibility issue