fix exception in log_apex_items

When trying to use the `log_apex_items` with the most recent release 2.1.2, I was getting the following error:

```
  ORA-01400: cannot insert NULL into ("HR"."LOGGER_LOGS_APEX_ITEMS"."LOG_ID")
```

It looks like the `log_internal` procedure needs to ensure the `g_log_id` is set properly in order for `log_apex_items` to work as expected.

With this change I'm seeing the APEX session items in LOGGER_LOGS_APEX_ITEMS as expected.