Getting null pointer exception on DB2 with foreign keys pointing to alias tables