Fixed bug with page bemhtml wrapping in production mode

Resolved #308