Check if the option metadata exists before processing it

To avoid NPEs when sending a non-exisistent option