Fixed small issue with register_field_groups and no field groups existing in the db

Signed-off-by: Elliot Condon <e@elliotcondon.com>