Honoring getForeignKeys()'s @NotNull annotation. refs #443