GLASSFISH-21146 Fixed NPE in log

- avoid toString call (implicit and safer for null values)
- debug replaced with logging level FINE
Merge pull request #47 from dmatej/GLASSFISH-21146

GLASSFISH-21146 Fixed NPE in log