Fix nil has one

Added a nil check before the empty check in the fetch method to allow a has_one child to be nil.