[ticket/13337] Do not use SQL IN comparison with empty array

is_array() will evaluate to true even if the array is just an empty array.
Make sure we don't append anything to the sql query if the $item_parent_id
variable is an empty array.

PHPBB3-13337