Missing if-statement end brace

Fix typo introduced in a860bda: missing if-statement end brace.