fix logic in read-only that breaks site register

#4354 

Site Register returns white screen