Added support for NIL results for Custom objects

Check return value from 'foundryAttributeForProperty:' and only add to attributesDict if not nil.

Signed-off-by: Darren Ehlers <me@darrenehlers.com>