Fix NULL value for relation reference widget