CHecking if variable is_array for fetchIncludableElements()

We need to protect ourselves from the code of others. fetchIncludableElements for a publish note returned null.