Fixed error and issue #5927

A notice is thrown when you bind a Entity to a form that has a default value of NULL