Fixed a nullPointerException I encountered

I encountered a NPE while doing a mvn liquibase:generateChangeLog which traced back to these lines. here is a Fix for it.