Fixed dialyzer warnings from bad jsx returns.