API: Fixed bug in get_field function preventing fields from the 'options page' or 'taxonomy term' to be returned

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