How to filter views output base on custom field
You can use the Views UI to accomplish this. 

Add two date filters: one of them should filter date fields for "is empty" and the other should filter date fields for "is less than" and choose "Enter relative date" and type "now". 

Then create an "OR" group and drag the two date filters to it. It should look like this: