Fixed missing variable checks

Signed-off-by: jdarwood007 <github+smf@sleepycode.com>
Merge pull request #744 from jdarwood007/fixes-0dc6202

Fixed missing variable checks
Typo

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge branch 'release-2.1' of https://github.com/SimpleMachines/SMF2.1 into release-2.1
Merge pull request #746 from Oldiesmann/release-2.1

Typo fix