Check if fourth argument is an object and normalize with stacktrace.js