Prevent undefined error when evaluating style prop