Fix PHP error when no default is selected

Fixes #9
v1.2.1